package edu.zhangxu.pojo;

import java.sql.Timestamp;

public class Solution {
    private int id;
    private int problemId;
    private int language;
    private String code;
    private int result;
    private int time;
    private double memory;
    private String errorInfo;
    private String wrongData;
    private String judger;
    private Timestamp judgeTime;

    public Solution() {
    }

    // 无需提供code和judger
    public Solution(int id, int problemId, int language, int result, int time, double memory, String errorInfo, String wrongData, Timestamp judgeTime) {
        this(id, problemId, language, null, result, time, memory, errorInfo, wrongData, null, judgeTime);
    }

    public Solution(int id, int problemId, int language, String code, int result, int time, double memory, String errorInfo, String wrongData, String judger, Timestamp judgeTime) {
        this.id = id;
        this.problemId = problemId;
        this.language = language;
        this.code = code;
        this.result = result;
        this.time = time;
        this.memory = memory;
        this.errorInfo = errorInfo;
        this.wrongData = wrongData;
        this.judger = judger;
        this.judgeTime = judgeTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getProblemId() { return problemId; }

    public void setProblemId(int problemId) { this.problemId = problemId; }

    public int getLanguage() {
        return language;
    }

    public void setLanguage(int language) {
        this.language = language;
    }

    public String getCode() { return code; }

    public void setCode(String code) { this.code = code; }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public double getMemory() {
        return memory;
    }

    public void setMemory(double memory) {
        this.memory = memory;
    }

    public String getErrorInfo() {
        return errorInfo;
    }

    public void setErrorInfo(String errorInfo) {
        this.errorInfo = errorInfo;
    }

    public String getWrongData() {
        return wrongData;
    }

    public void setWrongData(String wrongData) {
        this.wrongData = wrongData;
    }

    public String getJudger() { return judger; }

    public void setJudger(String judger) { this.judger = judger; }

    public Timestamp getJudgeTime() {
        return judgeTime;
    }

    public void setJudgeTime(Timestamp judgeTime) {
        this.judgeTime = judgeTime;
    }
}
